//code by Shallu
//to reverse every word of the string

import java.util.*;

public class ReverseEveryWord {
	
	public static void main(String[] args)
	
	{			
		
		String str="reverse every word of the string";
		char[] strarr=str.toCharArray();
				
					
		char[] newarr=new char[strarr.length];
		int j=strarr.length-1;
								
		for(int i=0; i<strarr.length; i++)
		{
				newarr[j]=strarr[i];
				j--;
			}
		
		System.out.println(newarr);					
		


	}

}
